package cn.shengchao.config.mybatis;

import top.continew.admin.common.userContext.DistributeUserContextLoader;
import top.continew.admin.common.userContext.UserDistributeContext;
import top.continew.starter.extension.datapermission.filter.DataPermissionUserContextProvider;


/**
 * @program: examstarapi
 * @description: 数据权限接口实现
 * @author: Xiong weiqiang
 * @create: 2025-05-26 16:05
 */
public class DataPermissionUserContextProviderImpl implements DataPermissionUserContextProvider {
    @Override
    public boolean isFilter() {
        return true;
    }

    @Override
    public UserDistributeContext getUserContext() {
        return DistributeUserContextLoader.getUserContext();
    }
}